<%@ Page Language="C#" MasterPageFile="~/Regular.master" AutoEventWireup="true" CodeFile="CategoryMain.aspx.cs"
    Inherits="CategoryMain" Title="Pervote" %>

<%@ Register Src="Controls/PlainHtmlControl.ascx" TagName="PlainHtmlControl" TagPrefix="uc3" %>
<%@ Register Src="Controls/CategoryView.ascx" TagName="CategoryView" TagPrefix="uc1" %>
<%@ Register Src="Controls/ShortPollView.ascx" TagName="ShortPollView" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Content" runat="Server">
    <div id="rightPane">
        <% if (!IsLoggedIn())
           {%>
        <div id="loginOrSignUpBox">
            <a href="Login.aspx">Login</a> or <a href="SignUp.aspx">SignUp!</a>
        </div>

        <script type="text/javascript">
            Rico.Corner.round('loginOrSignUpBox', {corners: 'all'});
        </script>

        <%} %>
        <uc3:PlainHtmlControl ID="PlainHtmlControl1" runat="server"></uc3:PlainHtmlControl>

        <script type="text/javascript">
            Rico.Corner.round('catMain-HtmlContentBox', {corners: 'all'});
        </script>

    </div>
    <div class="cloudBox">
        <h3>
            Polls in <%= GetSimpleCategoryName() %></h3>
        <p>
            <%= GetCloudData()%>
        </p>
        <h3>
            <a href="/PollListMain.aspx?Category=<%= GetFQCategoryName() %>&ListType=HotPolls">Hot Polls</a> | 
            <a href="/PollListMain.aspx?Category=<%= GetFQCategoryName() %>&ListType=NewPolls">New Polls</a> | 
            <a href="/PollListMain.aspx?Category=<%= GetFQCategoryName() %>&ListType=TopPolls">Top Polls</a> | 
            <a href="/PollListMain.aspx?Category=<%= GetFQCategoryName() %>&ListType=RandomPolls">Random Polls</a>
            </h3>
    </div>
    <uc2:ShortPollView ID="ShortPollView" runat="server" />
</asp:Content>
